From: Chad Horohoe Date: Sun, 26 Jul 2009 16:57:45 +0000 (+0000) Subject: Per bug 19943, improve docs on addExtensionStyle(). It behaves differently depending... X-Git-Tag: 1.31.0-rc.0~40708 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=ed1a0dc3d24ffce59621d9e9f471457282b8ed78;p=lhc%2Fweb%2Fwiklou.git Per bug 19943, improve docs on addExtensionStyle(). It behaves differently depending on what you pass it :) --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 93318e68c2..27e2fc063a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -99,7 +99,14 @@ class OutputPage { } function addScript( $script ) { $this->mScripts .= "\t\t" . $script . "\n"; } - function addExtensionStyle( $url ) { + /** + * Register and add a stylesheet from an extension directory. + * @param $url String path to sheet. Provide either a full url (beginning + * with 'http', etc) or a relative path from the document root + * (beginning with '/'). Otherwise it behaves identically to + * addStyle() and draws from the /skins folder. + */ + public function addExtensionStyle( $url ) { $linkarr = array( 'rel' => 'stylesheet', 'href' => $url, 'type' => 'text/css' ); array_push( $this->mExtStyles, $linkarr ); }